#define _CRT_SECURE_NO_WARNINGS 1

#include"QuickBubble.h"

int a = 10;

void test_QuickSortNonR()
{
	int a[] = { 10,9,8,7,6,5,4,3,2,1,0 };
	size_t size = sizeof(a) / sizeof(a[0]);
	PrintArray(a, size);
	QuickSortNonR(a, 0, size - 1);
	PrintArray(a, size);
}

void test()
{
	printf("%d",a);
}

void test_QuickSort()
{
	int a[] = { 10,9,8,7,6,5,4,3,2,1,0 };
	size_t size = sizeof(a) / sizeof(a[0]);
	PrintArray(a, size);
	QuickSort(a,0,size - 1);
	PrintArray(a, size);
}

void test_BubbleSort()
{
	int a[] = {10,9,8,7,6,5,4,3,2,1,0};
	size_t size = sizeof(a) / sizeof(a[0]);
	PrintArray(a, size);
	BubbleSort(a,size);
	PrintArray(a, size);
}

int main()
{
	//test_BubbleSort();
	test_QuickSort();
	//test();
	test_QuickSortNonR();

	return 0;
}